$ ls -l
total 4
drwxr-xr-x 2 user user 4096 Jan 1 12:34 directory
-rw-r--r-- 1 user user 0 Jan 1 12:34 file.txt
No output for this command, but it changes the current working directory.
$ pwd
/home/user
No output, but creates a new directory.
No output, but removes an empty directory.
No output, but the specified files/directories are removed.
No output, but the files/directories are copied.
No output, but the file/directory is moved or renamed.
No output, but the file is created or updated.
$ cat file.txt
Hello, World!
$ echo "Hello World"
Hello World
$ echo "name,age" | cut -d',' -f1
name
$ echo -e "c\nb\na" | sort
a
b
c
$ echo -e "a\na\nb" | uniq
a
b
$ echo "field1 field2" | awk '{print $2}'
field2
$ echo "hello" | sed 's/hello/world/'
world
Output varies based on running processes.
Interactive output showing process statistics.
No output, but sends the specified signal to the process.
$ nohup command &
Output is redirected to nohup.out.
No specific output, but moves the job to the background.
No specific output, but moves the job to the foreground.
Output varies, shows download progress and completion.
$ ping example.com
PING example.com (93.184.216.34) 56(84) bytes of data.
64 bytes from 93.184.216.34: icmp_seq=1 ttl=56 time=11.632 ms
Output varies, shows active connections and listening ports.
$ nslookup example.com
Server: 192.168.1.1
Address: 192.168.1.1#53
Non-authoritative answer:
Name: example.com
Address: 93.184.216.34
No output, but changes the permissions of the specified file.
No output, but changes the owner and group of the specified file.
This guide provides a quick overview and examples of common Linux commands along with their expected outputs, useful for CKAD exam preparation.