Miscellaneous thoughts and resources
Since the NVIDIA Forum is now strangely down, I decided to put up the valuable Cuda.rules v2.2.0 file used for integrating the CUDA toolkit with Visual Studio. I had downloaded it from the NVIDIA forum a while back. I DID NOT write it. I am just mirroring it.
Linux Commands I have found to be useful
These are commands I have used on RHEL 5.4 or Fedora.
- uptime - Tell how long the system has been running
- hdparm - get/set hard disk parameters (Check status of hard disk etc)
- df - report file system disk space usage
- du - estimate file space usage
- fsck - check and repair a Linux file system
- dmesg - print or control the kernel ring buffer
- pdsh - issue commands to groups of hosts in parallel
- xargs - build and execute command lines from standard input. Use with -I to specify where to place the stdout output
- awk - pattern scanning and processing language
- find - search for files in a directory hierarchy. Specify the regex in single quotes so that shell doesn’t interpret it as a list of files.
- wc - print the number of newlines, words, and bytes in files
- sort - sort lines of text files
- tr - translate or delete characters
- nice - run a program with modified scheduling priority
- /sbin/ldconfig - configure dynamic linker run time bindings
- strings - print the strings of printable characters in files.
- ldd - print shared library dependencies
- file - determine file type
- nm - list symbols from object files
- jconsole - Java Monitoring and Management Console. Slick GUI to monitor your JAVA processes
- jps - Java Virtual Machine Process Status Tool
- ack - ack is a tool like grep, designed for programmers with large trees of heterogeneous source code
- ulimit - Provides control over the resources available to the shell and to processes started by it, on systems that allow such control
- pkg-config - Return metainformation about installed libraries. The pkg-config program is used to retrieve information about installed libraries in the system. It is typically used to compile and link against one or more libraries
- locate - find files by name
- losetup - set up and control loop devices. Useful for setting up loopback filesystems you can fool around with
- sysctl - configure kernel parameters at runtime
- lsof - list open files. When given a process id, it lists all open file handles held by that process.
- strace - trace system calls and signals
- /sbin/checkconfig - updates and queries runlevel information for system services
- mtr - combines the functionality of the traceroute and ping programs in a single network diagnostic tool.
- od - dump files in octal and other formats
- hexdump — ascii, decimal, hexadecimal, octal dump
- fuser - identify processes using files or sockets
- nohup - run a command immune to hangups, with output to a non-tty
- httrack - offline browser : copy websites to a local directory
- xmessage - zenity - display GTK+ dialogs
- zenity - display GTK+ dialogs
- tcpkill - kill TCP connections on a LAN
- gdb - The GNU Debugger (Attach to any process and debug on the fly)
- scapy - Interactive packet manipulation tool
- cutter - Cuts a TCP connection
- fdisk - partition table manipulator for Linux
- mkfs - build a Linux file system
- grub - the grub shell. I used root, kernel, initrd and boot in the grub shell.
- disown - Without options, each jobspec is removed from the table of active jobs
- bg - Resume each suspended job jobspec in the background, as if it had been started with &
- Ctrl+z - suspend a job
- fc - Fix command
- iftop - display bandwidth usage on an interface by host
- mencoder $INPUTVIDEO -oac faac -faacopts br=192:mpeg=4:object=2:raw -channels 2 -srate 48000 -ovc x264 -x264encopts crf=18:nofast_pskip:nodct_decimate:nocabac:global_header:threads=4 -of lavf -lavfopts format=mp4 -o $OUTPUTVIDEO.mp4 - movie encoder. Convert a 3gp video to something iMovie will accept
- mpstat - Report processors related statistics.
- iostat - Report Central Processing Unit (CPU) statistics and input/output statistics for devices and partitions.
- xset - user preference utility for X
- bc - An arbitrary precision calculator language
- ipcs - provide information on ipc facilities
- lsattr - list file attributes on a Linux second extended file system
- chattr - change file attributes on a Linux second extended file system
- numactl - Control NUMA policy for processes or shared memory
- w - Show who is logged on and what they are doing.
- pcregrep - a grep with Perl-compatible regular expressions
- tc - show / manipulate traffic control settings. http://serverfault.com/questions/384132/iptables-limit-rate-of-a-specific-incoming-ip/384155#384155
- gstack - print a stack trace of a running process
- taskset - retrieve or set a process’s CPU affinity
- lstopo - Show the topology of the system
- hwloc - General information about hwloc (“hardware locality”).
- top - display Linux tasks
- Shift+H -> display all the threads
- F -> Sort by different coloumns
- paste - merge lines of files
- tune2fs - adjust tunable filesystem parameters on ext2/ext3/ext4 filesystems
- dig - DNS lookup utility
- pmap - report memory map of a process
Interesting websites
All content on this website is licensed as Creative Commons-Attribution-ShareAlike 4.0 License. Opinions expressed are solely my own.